package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SLookupPlayerRequest extends Object implements IMessageBase
    {
        public var fromGateChannelId:int;
        public var fromPlayerId:int;
        public var fromPlayerName:String;
        public var toPlayerId:int;
        public var toType:EEntityType;
        public var fromPlayerSex:int;
        public var fromPlayerCamp:int;
        public var fromEntityId:SEntityId;
        public const _type:int = 12028;
        public static var _regist:SLookupPlayerRequest = new SLookupPlayerRequest(true);

        public function SLookupPlayerRequest(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SLookupPlayerRequest();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.fromGateChannelId);
            param1.writeInt(this.fromPlayerId);
            param1.writeString(this.fromPlayerName);
            param1.writeInt(this.toPlayerId);
            this.toType.__write(param1);
            param1.writeInt(this.fromPlayerSex);
            param1.writeInt(this.fromPlayerCamp);
            this.fromEntityId.__write(param1);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.fromGateChannelId = param1.readInt();
            this.fromPlayerId = param1.readInt();
            this.fromPlayerName = param1.readString();
            this.toPlayerId = param1.readInt();
            this.toType = EEntityType.__read(param1);
            this.fromPlayerSex = param1.readInt();
            this.fromPlayerCamp = param1.readInt();
            this.fromEntityId = new SEntityId();
            this.fromEntityId.__read(param1);
            
        }

    }
}
